<?php
	if (!isset($_SESSION)) {session_start();}
	require "managesession.php";
	require "akses.php";
	$user=array();
	$user["username"]=$_POST["username"];
	$user["password"]=$_POST["password"];
	if (setLogin($user)==-1) {
		echo "Invalid username and password.";
	} else {
		echo getLoginUserid();
	}
?>